package tgc.edu.demo.jkxt.entity;

import javax.persistence.Entity;

import tgc.edu.demo.jkxt.custom.BaseEntity;



@Entity
public class Course extends BaseEntity<Integer>{
	private  String name;
	private Integer classHour;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getClassHour() {
		return classHour;
	}
	public void setClassHour(Integer classHour) {
		this.classHour = classHour;
	}
	public Course() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Course(Integer id) {
		super(id);
		// TODO Auto-generated constructor stub
	}
	public Course(String name, Integer classHour) {
		super();
		this.name = name;
		this.classHour = classHour;
	}
	@Override
	public String toString() {
		return "Course [name=" + name + ", classHour=" + classHour + "]";
	}
	
}
